﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ClassWork
{
    class Program
    {
        static void Main(string[] args)
        {
            List<MenuItem> listOfItem = new List<MenuItem>
            {
                new Snack(5, "maffin"),
                new Snack(3, "cake"),
                new Snack(2, "bagel"),
                new Beverage(3, 4,5, "coffee"),
                new Beverage(2,3,4, "capuccino")
            };

            foreach (MenuItem item in listOfItem)
            {
                item.PrintToConsole();
            }

        }
    }
}
